Due: Monday, May 11th by 6:00 PM
Write up carefully argued solutions to the following problems. Each solution should be clear enough that it can explain (to someone who does not already understand the answer) why it works. However, you may use results from lecture, the reference sheets, and previous homework without proof.
You are required to submit your own solutions. You are allowed to discuss the homework with other students. However, the write up must clearly be your own, and moreover, you must be able to explain your solution at any time. We reserve ourselves the right to ask you to explain your work at any time in the course of this class.
You have a total of three late days during the quarter, but you can only use one late day on any one homework, giving an additional day on both parts. Please plan ahead.
Submit your solution via Gradescope. In particular:
Each numbered task should be solved on its own page (or pages). Do not write your name on the individual pages. (Gradescope will handle that.)
When you upload your pages, make sure each one is properly rotated. If not, you can use the Gradescope controls to turn them to the proper orientation.
Follow the Gradescope prompt to link tasks to pages.
You are not required to typeset your solution, but your submission must be legible. It is your responsibility to make sure solutions are readable — we will not grade unreadable write-ups.
Let , , and be sets. Consider the following claim:
Suppose that , , and .
Calculate the values of the sets and . Check whether the claim holds.
Suppose that , , and .
Calculate the values of the sets and . Check whether the claim holds.
Write an English proof that the claim holds given that and .
(This updated claim describes the situation in part (a) but not part (b).)
Follow the structure of our template for subset proofs.
Note: even though we want you to write your proof directly in English, it must still look like the translation of a formal proof. In particular, you must include all steps that would be required of a formal proof, excepting only those that we have explicitly said are okay to skip in English proofs.
Let , , and be sets. Consider the following claim:
Suppose that , , and .
Calculate the values of the sets and . Check whether the claim holds.
Suppose that , , and .
Calculate the values of the sets and . Check whether the claim holds.
Write an English proof that the claim holds given holds.
(This updated claim describes the situation in part (b) but not part (a). The claim holds when either or hold, but the proof is the same for both cases thus one was omitted. Think about why that would intuitively make sense!)
Follow the structure of our template for subset proofs.
In your proof, you are free to use (cite or apply) the following theorems about sets:
Note: even though we want you to write your proof directly in English, it must still look like the translation of a formal proof. In particular, you must include all steps that would be required of a formal proof, excepting only those that we have explicitly said are okay to skip in English proofs.
Let , , and be sets. For each of the following claims:
State whether the the claim is true or false.
If the claim is true, write an English proof that the claim holds following the Meta Theorem template. (In your equivalence chain, you can skip steps showing commutativity or associativity, as long as each step is easy to follow.)
If it the claim false, give a counterexample. Provide specific finite sets for , , and , and then calculate the value of each side of the claim, showing that they do not produce the same set. (Be sure to show the value of each intermediate expression, when calculating each side.)
The following problems are optional and do not need to be submitted. However, you may submit solutions and receive a small amount of extra credit for any 5 (of the 12) subparts, graded solely on completion. For the maximum extra credit score, at least 5 subparts should be submitted, including at least one subpart from each of the three sections.
Prove each of the following claims.
Let and be sets. If , then .
Let and be sets. .
Let and be sets. If , then .
Let and be sets. If and and , then .
For any set and any , if has elements, then has elements.
Hint: Use induction. You can use without justification the following fact: If is nonempty with elements and is an element of , then has elements.
Let , , and be sets. For each of the following claims, either provide an English proof that the claim holds, or give a counterexample showing that the claim does not hold.
.
.
.
Use structural induction for the following problems. Let double be a function on lists and leaves be a function on trees, defined as follows:
Prove .
Prove .
Prove .
Prove .